/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software. 
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package com.ecarx.systemui.plugin.utils;

import android.os.Handler;

/**
 * author : jack(黄冲)
 * e-mail : 907755845@qq.com
 * create : 2019/4/17
 * desc   :
 */
public class ThreadUtils {

    public static void start(Runnable runnable){
        AppExecutors.getInstance().workThreadIO().execute(runnable);
    }


    public static void postDelayOnMain(long delay,Runnable runnable) {
        AppExecutors.getInstance().mainThread().delayExecute(delay,runnable);
    }

    public static Handler getBackgroundHandler(){
        return new Handler();
    }
}
